import request from "../request";

/* 
⭐
⭐
⭐
开工备案
*/

// 开工备案情况查询
export const getKgbaqkListAPI = (params) => {
  return request.request({
    method: "GET",
    url: "/api/project/constructionImplementation/kgbaqkList",
    params,
  });
};

// 开工备案提交接口
export const postkgbaqkSaveOrUpdateAPI = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/kgbaqkSaveOrUpdate",
    data,
  });
};

// 上传文件
export const kgbaqkMultifileUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/kgbaqkMultifileUpload",
    data,
  });
};

/* 
⭐
⭐
⭐
施工主要图纸
*/

// 施工主要图纸获取数据
export const getSgzytzListAPI = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/sgzytzList",
    params,
  });
};

// 施工主要图纸提交
export const getsgzytzSaveOrUpdateAPI = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/sgzytzSaveOrUpdate",
    data,
  });
};

// 多文件上传
export const sgzytzMultifileUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/sgzytzMultifileUpload",
    data,
  });
};

// 施工主要图纸删除
export const sgzytzDeleteById = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/sgzytzDeleteById",
    params,
  });
};

/* 
⭐
⭐
⭐
设计变更
*/
// 获取
export const sjbgList = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/sjbgList",
    params,
  });
};
// 文件上传
export const sjbgUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/sjbgUpload",
    data,
  });
};

// 删除
export const sjbgDeleteById = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/sjbgDeleteById",
    params,
  });
};

// 提交
export const sjbgSaveOrUpdate = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/sjbgSaveOrUpdate",
    data,
  });
};

/* 
⭐
⭐
⭐
监理工作
*/

// 获取监理工作数据
export const getJlgzList = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/jlgzList",
    params,
  });
};

// 监理工作提交按钮
export const postjlgzSaveOrUpdate = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/jlgzSaveOrUpdate",
    data,
  });
};

//监理工作上传
export const postjlgzUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/jlgzUpload",
    data,
  });
};

/* 
⭐
⭐
⭐
考勤管理
*/
// 获取
export const kqglList = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/kqglList",
    params,
  });
};

// 上传
export const kqglUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/kqglUpload",
    data,
  });
};

// 提交
export const kqglSaveOrUpdate = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/kqglSaveOrUpdate",
    data,
  });
};

/* 
⭐
⭐
⭐
进度填报
*/

// 获取年度选项
export const getYear = () => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/getYear",
  });
};

// 获取进度填报数据
export const getProgressReportDataAPI = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/getProgressReportData",
    params,
  });
};

// 获取添加工程量数据
export const getAddProject = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionImplementation/getAddProject",
    params,
  });
};

// 多文件上传
export const reportMultifileUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/reportMultifileUpload",
    data,
  });
};

// 保存提那家工程项数据
export const saveProjectData = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/saveProjectData",
    data,
  });
};

// 提交
export const progressReportUpdate = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionImplementation/progressReportUpdate",
    data,
  });
};
